const systemName: any = import.meta.env.VITE_SYSTEM_NAME;
const faviconObj = {
  xinzhou: {
    url: '/favicon-xinzhou.ico',
    title: '新舟教学教研系统'
  },
  feihong: {
    url: '/favicon-feihong.ico',
    title: '飞鸿教育'
  },
  jinbang: {
    url: '/favicon-jinbang.ico',
    title: '金榜点津问道'
  },
  xinbo: {
    url: '/favicon-xinbo.ico',
    title: '馨博教育'
  },
  shangzhi: {
    url: '/favicon-shangzhi.ico',
    title: '上志教育'
  },
  ym: {
    url: '/favicon-ym.ico',
    title: '依米教学平台'
  },
  default: {
    url: '/favicon.ico',
    title: '点津问道'
  }
};
(function (systemName) {
  document.querySelector('link[rel="icon"]')!.setAttribute('href', faviconObj[systemName] ? faviconObj[systemName].url : '/favicon.ico');
  document.title = faviconObj[systemName] ? faviconObj[systemName].title : '点津问道';
}(systemName));
